package com.example.dto;

import lombok.Data;
import com.example.model.dto.BaseDTO;
import com.example.validator.group.AddGroup;
import com.example.validator.group.UpdateGroup;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Null;
import java.io.Serializable;
import java.util.Date;

@Data
@Schema(description = "模板管理DTO")
public class GenTemplateDTO extends BaseDTO implements Serializable {
    private static final long serialVersionUID = 1L;

    @Null(message = "{id.null}", groups = AddGroup.class)
    @NotNull(message = "{id.require}", groups = UpdateGroup.class)
    @Schema(description = "id")
    private Long id;

    @Schema(description = "名称")
    private String name;

    @Schema(description = "文件名")
    private String fileName;

    @Schema(description = "内容")
    private String content;

    @Schema(description = "生成路径")
    private String path;

    @Schema(description = "状态  0：启用   1：禁用")
    private Integer status;
}